import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/console',
      name: 'console-home',
      component: () => import('../views/console/layout/index.vue'),
      children: [
        {
          path: 'ask',
          name: 'console-ask',
          component: () => import('../views/console/ask/index.vue')
        },
        {
          path: 'answer',
          name: 'console-answer',
          component: () => import('../views/console/answer/index.vue')
        }
      ]
    }
  ]
})

export default router
